package com.atguigu.filter.servlet;


import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(urlPatterns = "/private/ResServlet05")
public class ResServlet05 extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter writer = response.getWriter();
        writer.write("<h1>私密资源 03</h1>");
        writer.write("明月几时有？<br/>");
        writer.write("把酒问青天。<br/>");
        writer.write("不知天上宫阙，<br/>");
        writer.write("今夕是何年。<br/>");
        writer.write("我欲乘风归去，<br/>");
        writer.write("又恐琼楼玉宇，<br/>");
        writer.write("高处不胜寒。<br/>");
        writer.write("起舞弄清影，<br/>");
        writer.write("何似在人间。<br/>");
        writer.write("转朱阁，低绮户，<br/>");
        writer.write("照无眠。<br/>");
        writer.write("不应有恨，<br/>");
        writer.write("何事长向别时圆。<br/>");
        writer.write("人有悲欢离合，<br/>");
        writer.write("月有阴晴圆缺，<br/>");
        writer.write("此事古难全。<br/>");
        writer.write("但愿人长久，<br/>");
        writer.write("千里共婵娟。<br/>");
        writer.write("<a href='/index.jsp'>回首页</a>");
    }
}
